#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
//#define _CRT_SECURE_NO_WARNINGS
void swap(int* a, int* b)
{
	int t;
	t = *a;
	*a = *b;
	*b = t;
}
int main()
{
	int a, b;
	int* point1, * point2;
	printf("Input two integers:\n");
	scanf("%d %d", &a, &b);
	point1 = &a;
	point2 = &b;
	printf("Before swap: a=%d,b=%d\n", a, b);
	swap(point1, point2);
	printf("After swap: a=%d,b=%d\n", a, b);
	return 0;
}